package de.hsb.ai.agent.misterx.pathfinding;

import java.awt.Point;

public class Node {

	public Point _pos;
	public int _index;	
	public int _type;
	
	public Node _parent;
			
	public int _F = 0;
			
	public int _G = 0;
	public int _H = 0;
			
		
	Node(int index, Node parent){
		this._index = index;
		this._parent = parent;
	}

	
	/**
	 * setzt eine Position.
	 * @param pos
	 */
	public void setPosition(Point pos) {
		this._pos = pos;
	}
	
	/**
	 * setzt einen Typ.
	 * @param type
	 */
	public void setType(int type) {
		this._type = type;
	}
	
	/**
	 * String-Repräsentation des Objects.
	 */
	public String toString() {
		return this._index + "(" + this._type + ")";
	}
	
}
